﻿using CommonPatterns.DesignPatterns;
using OCDP.Client.Model;

namespace OCDP.Client.Adapters
{
    public class OperatorAdapter : Adapter<Operator>
    {
        #region Constructor
        public OperatorAdapter(Operator operatorInstance) 
            :base(operatorInstance)
        {
            OperatorName = operatorInstance.OperatorName;
            IconRessourcePath = operatorInstance.IconRessourcePath;
        }
        #endregion

        #region Properties
        private string iconRessourcePath;
        public string IconRessourcePath
        {
            get { return iconRessourcePath; }
            set
            {
                if (iconRessourcePath != value)
                {
                    iconRessourcePath = value;
                    RaisePropertyChanged(() => IconRessourcePath);
                }
            }
        }

        private string operatorName;
        public string OperatorName
        {
            get { return operatorName; }
            set
            {
                if (operatorName != value)
                {
                    operatorName = value;
                    RaisePropertyChanged(() => OperatorName);
                }
            }
        }
        #endregion
    }
}
